﻿using System;
using System.Windows.Forms;
using common;

namespace WindowsApplication2._5_字符串.基础
{
    public partial class GetMidRegexString : Form
    {
        public GetMidRegexString()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            string strSource = this.richTextBox1.Text;
            string strResult = "";

            strResult = StringHelper.GetMidRegexString("备注:", @"\d{4}-\d{2}-\d{2}", strSource);
            this.richTextBox2.Text = strResult;
        }
    }
}